package com.xuanyuanxinyu.core.base

import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.viewModelScope

/**
 * @FileName:
 * @Description:
 * @author ken.luo
 * @date 2023/4/4
 * @version V1.0
 * @email 424533553@qq.com
 */
class BaseViewModel(application : Application) : AndroidViewModel(application) {
    /**
     * 获取到ViewmodelScope
     */
    fun createScope() {
        val scope = viewModelScope
    }
    
    /**
     * 想销毁时调用
     */
    override fun onCleared() {
        super.onCleared()
    }
}